﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace CommonLib
{
	public class ClientBase : ISingleton<ClientBase>
	{
		public static GameStateController StateController;

		virtual public void Init()
		{
			StateController = new GameStateController(GameStateController.GetGameState(GameState.Start));
		}


		private void Update()
		{
			StateController.CurrentState.StateUpdate();
		}

		private void FixedUpdate()
		{
			StateController.CurrentState.StateFixedUpdate();
		}

		private void LateUpdate()
		{
			StateController.CurrentState.StateLateUpdate();
		}
	}
}